/**
 * 
 */
package neptune.web.client.commands;

import neptune.web.client.controller.ExperimentCreationDialogController;
import neptune.web.client.view.components.dialogs.ExperimentCreationDialog;

import com.google.gwt.user.client.Command;

/**
 * @author Roberto Bifulco [info@robertobifulco.it, robertobifulco.it]
 * 
 */
public class NewExperimentCommand implements Command {

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.google.gwt.user.client.Command#execute()
	 */
	public void execute() {
//		Vecchio comando
//		History.newItem(HistoryTokenUtils.buildToken(
//				OperativeView.DEFAULT_TOKEN, ExperimentView.DEFAULT_TOKEN));
//		--------------------------------------------------------------------
		
		ExperimentCreationDialog dialog = new ExperimentCreationDialog();
		dialog.setListener(new ExperimentCreationDialogController());
		dialog.center();
		
	}

}
